<template>
  <div class="dra_mian">
    <div class="dra_haerd">
      <div>审图申请</div>
      <div>
        <el-button icon="el-icon-plus" @click="hanldpath" type="danger"
          >新增申请</el-button
        >
      </div>
    </div>
    <div class="page_row">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="报图介绍" name="1">
          <btjs></btjs>
        </el-tab-pane>
        <el-tab-pane label="报馆记录" name="2">
          <sqjl></sqjl>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>
<script>
import sqjl from "../../components/outfit/drawing/sqjl.vue";
import btjs from "../../components/outfit/drawing/btjs.vue";
import { getToken, setToken, removeToken } from "@/utils/auth";
export default {
  components: {
    sqjl,
    btjs,
  },
  data() {
    return {
      activeName: "1",
    };
  },
  created() {
    setToken("drawing", true);
    setToken("jd", null);
    removeToken("applyid");
  },
  activated() {
    setToken("drawing", true);
    setToken("jd", null);
    removeToken("applyid");
  },
  methods: {
    hanldpath() {
      this.$router.push({path:"/drawingadd"});
    },
  },
};
</script>
<style scoped>
.dra_mian {
  background-color: #f2f2f2;
  padding: 40px;
}
.dra_haerd {
  width: 1000px;
  display: flex;
  background-color: #fff;
  align-content: center;
  justify-content: space-between;
  padding: 20px;
  margin: auto;
  margin-bottom: 20px;
}
.page_row {
}
</style>